package com.edu.edu.day45_mvp.model;

import android.os.SystemClock;

/**
 * Created by Administrator on 10/9 0009.
 */
public class LoginBiz implements ILoginBiz{


    @Override
    public void login(final String userName, final String passWord, final ILoginOnListener listener) {
        new Thread(){//耗时操作
            @Override
            public void run() {
                super.run();
                SystemClock.sleep(3000);
                if("hejing".equals(userName) && "111111".equals(passWord)){
                    listener.loginSucceed();
                }else {
                    listener.loginFailed();
                }
            }
        }.start();
    }
}
